package testClasses.misc;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;

import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Geometry;
import com.jme3.scene.Mesh.Mode;
import com.jme3.scene.shape.Box;

import testClasses.ATest;
import testClasses.TestingSystem;
import utilities.CustomMesh;

public class StrategyCameraTest extends ATest {

	public StrategyCameraTest(TestingSystem system) {
		super(system);
		this.name = "StrategyCameraTest";
	}

	@Override
	public boolean execute() throws FileNotFoundException, IOException,
			ClassNotFoundException {
		
		
		
//		ArrayList<Double> loc;
//		float x;
//		float y;
//		CustomMesh mesh1 = new CustomMesh(1);
//		mesh1.setMode(Mode.Points);
//		mesh1.setColor(ColorRGBA.Green);
//		mesh1.setPointSize(5);		
//		
//		x = 0.0f;;
//		y = 0.0f;
//			
//		mesh1.addVertex(x, y, 0);			
//		
//		mesh1.finish();
//		mesh1.setStatic();
		
		Geometry geo1 = new Geometry("points", new Box(1.0f, 1.0f, 1.0f));
		Material mat1 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
		mat1.setColor("Color", ColorRGBA.Green);
		//mat1.setBoolean("VertexColor", true);
		geo1.setMaterial(mat1);
		node.attachChild(geo1);
		
		
		
		
		return false;
	}

}
